
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type StoreProductCateRequest struct {

	ProductId string `json:"product_id" form:"product_id"`

	CateId string `json:"cate_id" form:"cate_id"`

	AddTime string `json:"add_time" form:"add_time"`

	CatePid string `json:"cate_pid" form:"cate_pid"`

	Status string `json:"status" form:"status"`

}

func (r *StoreProductCateRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *StoreProductCateRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"product_id": "required",

		"cate_id": "required",

		"add_time": "required",

		"cate_pid": "required",

		"status": "required",

	}
}

func (r *StoreProductCateRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreProductCateRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreProductCateRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
